package com.xdjd.mobile.business.entity.vo;

/**
 * 验证码业务类型枚举
 * 
 * @author panjl
 *
 */
public enum VerifyCodeBizTypeEnum {

    LOGIN(10, "登陆");
	

    /**
     * 验证码业务类型代码
     */
    private Integer code;

    /**
     * 验证码业务类型描述
     */
    private String  desc;

    private VerifyCodeBizTypeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static VerifyCodeBizTypeEnum getByCode(Integer code) {
        if (code == null) {
            return null;
        }
        VerifyCodeBizTypeEnum sts = null;
        for (VerifyCodeBizTypeEnum stsEnum : VerifyCodeBizTypeEnum.values()) {
            if (stsEnum.getCode().equals(code)) {
                sts = stsEnum;
                break;
            }
        }
        return sts;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

}
